package com.tianbo.service.imp;

import com.tianbo.mapper.MessageBakMapper;
import com.tianbo.model.MessageBak;
import com.tianbo.model.MessageBakExample;
import com.tianbo.service.MessageBakService;
import com.tianbo.util.dao.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by mrz on 2017/8/24.
 */
@Service
public class MessageBakServiceImpl implements MessageBakService{


    @Autowired
    private MessageBakMapper messageBakMapper;

    public List<MessageBak> selectByExample(MessageBakExample example){



        List<MessageBak> list = messageBakMapper.selectByExample(example);

        return  list;

    }

    public MessageBak selectByPrimaryKey(Short fid){
        MessageBak messageBak = messageBakMapper.selectByPrimaryKey(fid);
        return messageBak;
    }

    public int countByExample(MessageBakExample example){
        return  messageBakMapper.countByExample(example);
    }
}
